<script setup>
import $bus from '../../bus'
import {onMounted, ref} from 'vue'

const myCar = ref('')

onMounted(() => {
  $bus.on("data", (data) => {
      console.log(data.car)
      myCar.value = data.car
  })
})
</script>

<template>
  <div class="son2">{{myCar}}</div>
</template>

<style scoped>
.son2 {
  width: 400px;
  height: 200px;
  background-color: yellow;
}
</style>
